package com.csi.bumblebee.service.impl;


import com.csi.bumblebee.domain.user.MyCollection;
import com.csi.bumblebee.domain.vo.MyCollectionVo;
import com.csi.bumblebee.mapper.MyCollectionMapper;
import com.csi.bumblebee.service.MyCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 收藏岗位夹
 * @author wdl
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MyCollectionServiceImpl implements MyCollectionService {

    @Autowired
    private MyCollectionMapper myCollectionMapper;


    /**
     * 收藏岗位夹
     * @param id 学生id
     * @return 收藏的岗位列表
     */
    @Override
    public List<MyCollectionVo> listLikeJob(String id) {

        if (id!=null && id!=""){
            return this.myCollectionMapper.listLikeJob(id);
        }

        return null;
    }


}
